package com.jar.exercise.算法.排序;

public class Main {

	public static void main(String[] args) {
		int[] arr = {3, 4, 7, 6, 98, -5, 36, 100, 10, 1};

	}


	public static int getBaseNumber(int[] arr) {
		if (arr.length != 0) {
			return (arr[0] + arr[arr.length - 1]) / 2;
		}
		return -1;
	}
}
